home *** CD-ROM | disk | FTP | other *** search
- SETTING ENVIRONMENT SPACE WITH DESQview.
-
- Each DV window has up to 32K of environment UNTIL you run a
- program or a batch file. If you need more environment, try one
- of these methods:
-
- Method 1 - Create an autostartup script (see page 89 in the DV
- manual for details on how to do this) for your window which
- sets the environment variables you need and then starts your
- program.
-
- Method 2 - Create dummy environment variables with strings of
- garbage as space holders...like,
- X1 = ;lfjapoieupoeiru poiunvpwovupwerouvpwourvpworuiqpw
- x2 = 46416716416416746416167161768716187637846887787891
- x3 = nnvjvn9n0439543-43b3nnvhnviovungigcmnongut4o9935978
- etc.
- Next, open a DV window that has the Program...field as:
- c:\COMMAND.COM
- AND, close on exit to DOS set to [Yes]. This makes
- COMMAND.COM the program which gets run. You can then start your
- own program or batch file. In this method, your batch file
- should clear the dummy variables and then run the program.
- example: set x1 =
- set x2 =
- set x3 =
- etc.
- Run the program.
- This works because every program loaded directly by DV
- (i.e., a .COM or .EXE is specified and Close on Exit to DOS is
- set to [Yes]) inherits the environment that existed before DV was
- started. "Set x1 = " clears that environment variable which
- in turn frees the space for your own values.
-
- Method 3- Have the environment set up with the needed values
- before running DV. Then every .EXE or .COM (which includes
- COMMAND.COM) will inherit this environment.
-